﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DIMP_Libraries
{
    public class Logger
    {

        private static String getHeader()
        {
            return DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + " | ";
        }

        public static void Log(String message)
        {
            Console.WriteLine(getHeader() + message);
        }

        public static void LogError(String message)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Log(message);
            Console.ResetColor();
        }

        public static void LogSuccess(String message)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Log(message);
            Console.ResetColor();
        }

        public static void LogWarning(String message)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Log(message);
            Console.ResetColor();
        }

    }
}
